package com.hyj.task;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.hyj.mapper.UsersMapper;




@Component
@EnableScheduling
public class SimpleTask {
	@Autowired
	UsersMapper usersMapper;
	
	@Scheduled(cron="0 00 00 * * *")
	public void printInfo9() {
		
		boolean l=  usersMapper.removeAllTime();
		System.out.println("输出是否添加资源情况"+l);
		
	}
	
}
